Submit

Mqtt Mcp Server

@Archimedes Market

Connect your AI assistant to IoT device networks via MQTT. Subscribe to sensor topics, publish commands, monitor device health, and set threshold alerts — all through the Model Context Protocol. Works with any MQTT 3.1.1/5.0 broker: Mosquitto, HiveMQ, EMQX, AWS IoT Core, Azure IoT Hub, or your local Home Assistant instance.
Overview

MQTT MCP Server

MQTT/IoT Bridge for AI Assistants

Connect your AI assistant to IoT device networks via MQTT. Subscribe to sensor topics, publish commands, monitor device
health, and set threshold alerts — all through the Model Context Protocol.

Works with any MQTT 3.1.1/5.0 broker: Mosquitto, HiveMQ, EMQX, AWS IoT Core, Azure IoT Hub, or your local Home Assistant
instance.

Tools

  • connect — Connect to any MQTT broker (TCP, TLS, WebSocket). Supports authentication.
  • subscribe — Subscribe to topic patterns with MQTT wildcards (+, #). Messages buffer in the background.
  • publish — Publish messages to topics — plain text or JSON. Supports QoS 0/1/2 and retained messages.
  • list_topics — Discover active topics on the broker with message counts and payload previews.
  • monitor_device — Watch a device topic, auto-parse sensor payloads, compute live statistics.
  • set_alert — Define threshold alerts on numeric values. Get notified when sensor readings cross limits.

Installation

{
  "mcpServers": {
    "mqtt": {
      "command": "node",                                                                                                   
      "args": ["/path/to/mcp-mqtt/dist/index.js"]
    }                                                                                                                      
  }                                                       
}

Use cases                                                                                                                  
 
- Discover all topics on an unfamiliar broker                                                                              
- Monitor a temperature sensor with auto-computed min/max/avg statistics
- Publish commands to smart devices via natural language                                                                   
 
License                                                                                                                    
                                                          
MIT — full source on archimedes.market

Server Config

{
  "mcpServers": {
    "mqtt": {
      "command": "node",
      "args": [
        "/path/to/mcp-mqtt/dist/index.js"
      ]
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.

- MCP Server